package com.bdd.mapper;

import com.bdd.entity.Order;
import com.bdd.model.bo.OrderBO;
import com.github.pagehelper.Page;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author huanghaining
 * @date 2022/3/18
 */
@Repository
public interface OrderDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    Page<OrderBO> selectAll();

    List<OrderBO> selectByOrderId(@Param("id")Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
}